package com.vue.designPatterns.template;

/**
 * Created by Administrator on 2019/3/15.
 */
public class StrategyTest {

    public static void main(String[] args) {
        String exp = "8,8";
        AbstractCalculator cal = new Plus();

        int calculate = cal.calculate(exp, ",");

        System.out.println(calculate);


        cal = new Jian();
        calculate = cal.calculate(exp,",");
        System.out.println(calculate);

    }

}
